 |
 |
 |
 |
#146461 - 08/20/01 06:21 PM
[6.1x] Dropdown Avatar Hack 1.0
|
Developer
Registered: 01/01/01
Posts: 1930
Loc: Surrey, BC, Canada
|
Name: Avatar Hack v1.0 Public Beta Purpose: Associates an icon (avatar) with user when he/she posts. Custom avatars are available. Many possible user management of avatars available (Moderators and Administrators only). User upload of avatars not available but easily hacked in. Why Better than Built In UBB 6.1 Functionality?: * users get to choose their own avatars from a pre-approved list * security-conscentious New Features: * more XHTML compatible code * WAY, WAY optimized custom avatar code * ability to specify multiple graphic types (unlimited) Download: http://www.qasic.net As always, bug reports are appreciated here. Thanks to afterlab for reporting the custom avatar bug (it's now been fixed btw). qasic [ August 20, 2001: Message edited by: qasic ]
_________________________
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146479 - 09/15/01 06:53 AM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Junior Member
Registered: 06/28/01
Posts: 363
Loc: uk
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146486 - 10/14/01 06:59 PM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Junior Member
Registered: 08/15/01
Posts: 3
|
hi i install this hack and get Undefined subroutine &main::GetAvatarImg called at /home/fatal/users/f-miigaik/public_html//ubb2/Templates/public_topic_page.pl line 126. Please inform the board administration of this error so that they may fix the problem. Thank you! (Caller: public_common.pl:570 -> sub main::Tracer) (Caller: Carp.pm:139 -> sub main::StandardHTML2) (Caller: Carp.pm:82 -> sub UBBCGI::Carp::fatalsToBrowser) (Caller: public_topic_page.pl:126 -> sub UBBCGI::Carp:  ie) (Caller: ubb_lib_posting.cgi:1014 -> sub main::topic_row) (Caller: ubb_get_topic.cgi:72 -> sub main::create_topic) (Caller: ultimatebb.cgi:569 -> sub main::get_topic) 
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146492 - 10/23/01 10:54 PM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Member
Registered: 05/08/01
Posts: 46
Loc: Orlando, FL
|
As usual, Qasic to the rescue. New problem now. When I try to view my avatar list from the profile, it gives me the following: CGI ERROR The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Can't locate UBBCGI.pm in @INC (@INC contains: ./Modules . c:/Perl/lib c:/Perl/site/lib) at c:lmallaubbcgi2avatarlist.cgi line 17. BEGIN failed--compilation aborted at c:lmallaubbcgi2avatarlist.cgi line 17. I haven't touched the beta/preview versions of 6.1, so the UBBCGI.pm deal is totally new to me.. BTW, you rock my world Qasic  [ 10-24-2001: Message edited by: DGMayor ]
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146496 - 10/25/01 03:01 AM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Junior Member
Registered: 10/17/01
Posts: 19
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146497 - 10/25/01 09:24 AM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Coder
Registered: 06/10/01
Posts: 705
Loc: CT
|
Linking images from one server to another for an avatar is not a good idea. This steals bandwidth not only from your system but that of the server hosting the image. Most systems frown upon this behavior.
I personaly would love to have an upload feature that set specific file size and display image (able to resize)
_________________________
...Steven Hostboard.com Running UBB v6.1.0.4 Doing what NO other UBB in the world is doing. The first & only production UBB powered by MySQL.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146515 - 11/04/01 03:36 PM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Developer
Registered: 01/01/01
Posts: 1930
Loc: Surrey, BC, Canada
|
Manik,
find inside avatarlist.cgi:
($0 =~ m!(.*)(\|/)[^/\]+!) && unshift(@INC, $1, "$1$2Modules");
and add above:
# Get the script location: UNIX / or Windows / ($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: Windows ($0 =~ m,(.*)\[^\]+,) && unshift (@INC, "$1");
qasic
_________________________
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146526 - 12/10/01 08:41 AM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Coder
Registered: 06/10/01
Posts: 705
Loc: CT
|
Found an error in the code!!!
In: public_register_page_kid.pl
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> FIND: # other registration fields follow:
ADD AFTER: require "$vars_config{CGIPath}/avatar_list.pl"; &AvatarGutsProfile; </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">
Should be:
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif"> ADD AFTER: require "$vars_config{CGIPath}/ubb_avatar.cgi"; &AvatarGutsProfile; </font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">
First time I was able to fix code myself <img src="biggrin.gif" border="0" alt="" />
_________________________
...Steven Hostboard.com Running UBB v6.1.0.4 Doing what NO other UBB in the world is doing. The first & only production UBB powered by MySQL.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146529 - 12/11/01 01:53 PM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Content Queen
Registered: 05/07/01
Posts: 709
Loc: Pennsylvania
|
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Originally posted by Nokia666: 2. I want them to be able to link to their own avatar as well as choose one in the list without me having to do it for them in the cp.</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">
Nokia,
I don't have the answers to your one bug issue, but I think I can speak for those who create these hacks that this idea won't work--and there is a very simple reason why--bandwidth theft.
Too many people would see an avatar that they like somewhere else and direct link to it. It would be a nightmare on your part to monitor this.
My members love the avatars; if they want a custom one, I simply have them send it to me, and then I take care of it for them. A hassle, yes? But much, much better than having to monitor for bandwidth theft. <img src="biggrin.gif" border="0" alt="" />
_________________________
Sue adwoff.com
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146531 - 12/20/01 12:25 PM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Member
Registered: 05/08/01
Posts: 46
Loc: Orlando, FL
|
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Originally posted by DGMayor: As usual, Qasic to the rescue. New problem now. When I try to view my avatar list from the profile, it gives me the following:
CGI ERROR
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Can't locate UBBCGI.pm in @INC (@INC contains: ./Modules . c:/Perl/lib c:/Perl/site/lib) at c:lmallaubbcgi2avatarlist.cgi line 17. BEGIN failed--compilation aborted at c:lmallaubbcgi2avatarlist.cgi line 17.
I haven't touched the beta/preview versions of 6.1, so the UBBCGI.pm deal is totally new to me..
BTW, you rock my world Qasic <img src="wink.gif" border="0">
[ 10-24-2001: Message edited by: DGMayor ]</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif"> Hey Qasic, almost 2 months later, still having the issue 
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146534 - 12/21/01 09:17 PM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Member
Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146547 - 01/07/02 03:50 PM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Member
Registered: 06/25/01
Posts: 199
|
Heya Qasic,
I added the code you recomended above ($0 =~ m!(.*)(\|/)[^/\]+!) && unshift(@INC, $1, "$1$2Modules");
My code now looks like this: # Note: If you ain't Infopop or an Infopop licensee, you DON'T HAVE ANY # right to use it! ############################################################################
# Get the script location: UNIX / or Windows / ($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: Windows ($0 =~ m,(.*)\[^\]+,) && unshift (@INC, "$1");
($0 =~ m!(.*)(\|/)[^/\]+!) && unshift(@INC, $1, "$1$2Modules"); use lib("./Modules", "."); # in the event $0 is not set
The new error is: The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Can't locate UBBCGI.pm in @INC (@INC contains: ./Modules . F:/Perl/lib F:/Perl/site/lib) at F:InetpubTestAlteredDestinycgi-binavatarlist.cgi line 22. BEGIN failed--compilation aborted at F:InetpubTestAlteredDestinycgi-binavatarlist.cgi line 22.
Basically, the error is occuring in line 22 instead of line 17 now.
I'll toy with it a bit to see if i can figure it out. If you have any ideas, they would be much appreciated.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146569 - 01/13/02 04:14 AM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Junior Member
Registered: 05/14/01
Posts: 4
|
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Originally posted by qasic: Both of you try this.
Find:
($0 =~ m!(.*)(\|/)[^/\]+!) && unshift(@INC, $1, "$1$2Modules"); use lib("./Modules", "."); # in the event $0 is not set
and replace with:
BEGIN { ($0 =~ m!(.*)(\|/)[^/\]+!) && unshift(@INC, $1, "$1$2Modules"); use lib("./Modules", "."); # in the event $0 is not set }
LMK how this goes.
FYI, using UBBCGI is better; it's faster <img src="smile.gif" border="0" alt="" />
qasic</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">
I already tried above one,but still have error message below:
[500] Error - Internal Server Error
Debugging Information:
Premature end of script headers: /data1/va/tsenglh1/ubbnew/cgi-bin/avatarlist.cgi
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146576 - 01/23/02 02:18 AM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Member
Registered: 07/03/01
Posts: 99
Loc: Santa Ana, CA
|
Qasic another question. I installed your hack on my board witch is v6.1.0.4 The avatars work great, but problem is I noticed is when a member has a picture in their profile, it shows as the profile picture instead of the avatar they selected. Only way I can correct this is clear cache and it's fixed, but they can't select a avatar due to their profile picture. It does not make a seperate field for avatars. I also noticed when you select a avatar image, it goes into your picture field. Now I don't know of this is a bug or I did something wrong witch I doubted. But do you know a way to fix this and seperate the avatars from the picture field with their own? http://198.76.30.38//ubb/ultimatebb.php?ubb=get_topic&f=2&t=001018 Here go to my name in that topic and click on my profile. You see what I mean. <font color="#000000" size="1">[ 01-23-2002 02:19 AM: Message edited by: Terminator_X ]</font>
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#146577 - 01/24/02 10:48 PM
Re: [6.1x] Dropdown Avatar Hack 1.0
|
Member
Registered: 07/03/01
Posts: 99
Loc: Santa Ana, CA
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|